<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="personalRestList.title"/></title>
<content tag="heading"><fmt:message key="personalRestList.heading"/></content>
<meta name="menu" content="PersonalRestMenu"/>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/editPersonalRest.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<html:rewrite forward="mainMenu"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="personalRestList" cellspacing="0" cellpadding="0"
    id="personalRestList" pagesize="25" class="table personalRestList"
    export="true" requestURI="">

    <display:column property="id" sortable="true" headerClass="sortable"
        url="/editPersonalRest.html" paramId="id" paramProperty="id"
        titleKey="personalRestForm.id"/>
    <display:column property="empNo" sortable="true" headerClass="sortable"
         titleKey="personalRestForm.empNo"/>
    <display:column property="restId" sortable="true" headerClass="sortable"
         titleKey="personalRestForm.restId"/>
    <display:column property="restHours" sortable="true" headerClass="sortable"
         titleKey="personalRestForm.restHours"/>
    <display:column property="restDays" sortable="true" headerClass="sortable"
         titleKey="personalRestForm.restDays"/>
    <display:column property="startTime" sortable="true" headerClass="sortable"
         titleKey="personalRestForm.startTime"/>
    <display:column property="endTime" sortable="true" headerClass="sortable"
         titleKey="personalRestForm.endTime"/>
    <display:column property="restTimeTotal" sortable="true" headerClass="sortable"
         titleKey="personalRestForm.restTimeTotal"/>
    <display:column property="restTimeApplied" sortable="true" headerClass="sortable"
         titleKey="personalRestForm.restTimeApplied"/>
	<display:setProperty name="paging.banner.item_name"><fmt:message key="personalRestList.title"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="personalRestList.title"/></display:setProperty>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("personalRestList");
</script>
